﻿using System;
using UnityEngine;
using Verse;

namespace RimZombieGirl
{
	[StaticConstructorOnStartup]
	public class Gizmo_AbortTransform : Command
	{
		public Gizmo_AbortTransform(Building_TransformationCoffin chamber)
		{
			this.transCoffin = chamber;
			if (this.transCoffin.IsPawnZombie())
			{
				this.defaultLabel = Translator.Translate(this.labelAbortLevelUp);
				this.defaultDesc = Translator.Translate(this.descriptionAbortLevelUp);
			}
			else
			{
				this.defaultLabel = Translator.Translate(this.labelAbortTransform);
				this.defaultDesc = Translator.Translate(this.descriptionAbortLevelUp);
			}
			this.icon = Gizmo_AbortTransform.initIcon;
		}

		public override void ProcessInput(Event ev)
		{
			base.ProcessInput(ev);
			this.transCoffin.EjectPawn();
		}

		public Building_TransformationCoffin transCoffin;

		public static Texture2D initIcon = ContentFinder<Texture2D>.Get("UI/Gizmos/RI_Icon_Interrupt", true);

		public string labelAbortTransform = "ZombieGizmoAbortTransformLabel";

		public string labelAbortLevelUp = "ZombieGizmoAbortLevelUpLabel";

		public string descriptionAbortTransform = "ZombieGizmoAbortTransformDescription";

		public string descriptionAbortLevelUp = "ZombieGizmoAbortLevelUpDescription";
	}
}
